<template>
    <div>
        <button @click="M='MDao1'">香草冰淇淋</button>
        <button @click="M='MDao2'">巧克力冰淇淋</button>
        <button @click="M='MDao3'">牛奶冰淇淋</button>
        <component :is="M"></component>
    </div>
</template>
<script>
import MDao1 from "../MDao/MDao1"
import MDao2 from "../MDao/MDao2"
import MDao3 from "../MDao/MDao3"
export default{
    components:{
        MDao1,
        MDao2,
        MDao3
    },
    data() {
        return {
            M:''
        }
    },
}
</script>